package com.ny.service;

import com.ny.entity.User;

public interface UserService {
    int addUser(User user);
    User findUser(String username,String password);
    User findUserByEmail(String email);
    int updatePassword( String password,  String email);
    void sendToEmail(String toEmail);
    boolean checkCode(String toEmail, String code);

    User findByUsernameAndPassword(String username, String password);
}
